package cz.proks.bank.client;

import javax.xml.ws.WebServiceException;

import org.springframework.stereotype.Service;

import cz.proks.bank.service.scoreservice.Score;
import cz.proks.bank.service.scoreservice.ScoreRequest;
import cz.proks.bank.service.scoreservice.ScoreService;
import cz.proks.bank.service.scoreservice.ScoreService_Service;

@Service
public class ScoreServiceClient implements ScoreService {
	private ScoreService client;
	
	public ScoreServiceClient() throws WebServiceException {
		client = new ScoreService_Service().getScoreServicePort();
	}

	@Override
	public Score getClientBonity(ScoreRequest arg0) {
		return client.getClientBonity(arg0);
	}
}
